package com.website.at.fw.action;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.opensymphony.xwork2.ActionSupport;

public abstract class AbstractActionEx extends ActionSupport {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -8585274950844415595L;

	static Log log = LogFactory.getLog(AbstractActionEx.class);

	public String execute() {
		if (log.isDebugEnabled()) {
			log.debug("execute Start.");
		}

		String result = null;
		try {
			result = this.doExectue();
		} catch (Exception e) {
			e.printStackTrace();
		}

		if (log.isDebugEnabled()) {
			log.debug("execute end.");
		}
		return result;
	}

	public abstract String doExectue() throws Exception;
}
